package com.ypd.show.domain;

import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 点击量操作对象 tb_statistic
 * 
 * @author ye
 * @date 2025-01-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Statistic extends BaseEntity
{
    public Statistic(Long articleId, Long hits, Long commentsNum) {
        this.articleId = articleId;
        this.hits = hits;
        this.commentsNum = commentsNum;
    }

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 关联的文章id */
    @Excel(name = "关联的文章id")
    private Long articleId;

    /** 文章点击总量 */
    @Excel(name = "文章点击总量")
    private Long hits;

    /** 文章评论总量 */
    @Excel(name = "文章评论总量")
    private Long commentsNum;



}
